<template>
  <div class="card">
    <div class="card-header">
      <h5>{{ title }}</h5>
    </div>
    <div class="card-body">
      {{ content }}
    </div>
    <div class="card-footer">
      <button class="btn btn-primary">按钮</button>
    </div>
  </div>
</template>
<script>
export default {
    data() {
        return {
            title:'标题',
            content:'内容'
        }
    },
};
</script>
<style lang="less" scoped>
.card {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
  padding: 16px;
  opacity: 0.8;
}

.card-header {
  background-color: #f8f9fa;
  padding: 8px;
  border-bottom: 1px solid #e9ecef;
}

.card-body {
  padding: 8px;
}

.card-footer {
  background-color: #f8f9fa;
  padding: 8px;
  border-top: 1px solid #e9ecef;
}

.btn {
  margin-top: 8px;
}
</style>
